<?
    $cnt = count($rows);
    $thumbnail = isset($rows[0]['path']) ? HOST_URL_CMS . $rows[0]['path'] . '/' . get_thumbnail(194, 130, $rows[0]['filename']) : "";

    $limit = 57;   // limts text character
?>

<div class="column">
    <h4 class="ellipsis"><?= $title ?></h4>
    <img alt="<?= $title ?>" src="<?= $thumbnail ?>">

    <div class="list">

        <?
            $i = 0;
            foreach ($rows as $row) :
                if ($i == 3)
                    break;
                $i++;

                $pretty_name = URLify::filter($row['post_title']);
                $href = lang_url($url_ID . '/' . $pretty_name . '-' . $row['ID']);
                ?>

                <a href="<?= $href ?>">
                    <h7 class="cube ellipsis"><span></span> <?= $row['post_title'] ?></h7>
                    <p>
                        <?= limit_text($row['content'], $limit, TRUE, TRUE) ?>
                    </p>
                </a>

                <?
            endforeach;
        ?> 

    </div>
</div>